<template>
  <div>
    <h2>找回密码</h2>
    <el-form :model="form" label-width="100px">
      <el-form-item label="登录名">
        <el-input v-model="form.username" placeholder="员工号/手机/邮箱"></el-input>
      </el-form-item>
      <el-form-item label="验证码">
        <el-input style="width: 228px;margin-right: 10px" v-model="form.code" placeholder="请输入验证码"></el-input>
        <el-button type="primary" plain>发送验证码</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="small" plain>找回密码</el-button>
        <el-button style="float: right;" size="small" plain @click="loginform">回到登录</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'FindPwd',
  data () {
    return {
      form: {
        username: '',
        password: ''
      }
    }
  },
  methods: {
    loginform () {
      this.$emit('update:r', '0deg')
    }
  }
}
</script>

<style scoped lang="less">
  h2{
    text-align: center;
    line-height: 80px;
    margin-bottom: 20px;
  }
</style>
